package com.vortex.cloud.zhsw.xinyang.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author bending
 * @version 1.0
 * @className BaseDTO
 * @description TODO
 * @date 2022/8/15 14:31
 **/
@Data
public class BaseDTO implements Serializable {

    @Schema(description = "记录id")
    private String id;

    @Schema(description = "租户id")
    private String tenantId;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Schema(description = "更新时间")
    private LocalDateTime updateTime;

    @Schema(description = "是否删除")
    private Boolean deleted;

}
